package controller

import (
	"fmt"

	"github.com/gin-gonic/gin"
)

func validatingUserIdHeader(c *gin.Context) (string, error) {
	val := c.GetHeader("user_id")
	if val == "" {
		return "", fmt.Errorf("cant get header:%s ", "user_id")
	}

	return val, nil
}
